package com.lhs.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestController
 *
 * @author longhuashen
 * @since 2021-05-31
 */
@RestController
public class TestController {

    @Autowired
    private YuanbangProp yuanbangProp;

    @RequestMapping("/test")
    public String hello() {
        return "hello,world! 从nacos获取到的数据:" + yuanbangProp.getHttpDomain();
    }

}
